package com.xhsj.user.hr.process.processDefinition.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xhsj.user.hr.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 流程设计-流程申请匹配表
 * </p>
 *
 * @author liuqinghua
 * @since 2020-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_global_business")
public class TbGlobalBusiness extends BaseEntity<TbGlobalBusiness> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableField("organization_id")
    private Long organizationId;

    /**
     * 流程名称
     */
    @TableField("business_name")
    private String businessName;

    /**
     * 字典表id
     */
    @TableField("dict_id")
    private Integer dictId;

    /**
     * 版本号
     */
    @TableField("version_num")
    private Integer versionNum;

    /**
     * 启用禁用状态默认启用
     */
    @TableField("is_enable")
    private Integer isEnable;

    /**
     * 提交状态 0 保存 1提交
     */
    @TableField("submit_stauts")
    private Integer submitStauts;

    /**
     * 特定角色
     */
    @TableField(value = "role_id",fill = FieldFill.UPDATE) // 字段为null时,也修改
    private Long roleId;

    /**
     * 判断条件id
     */
    @TableField("judge_id")
    private Long judgeId;
}
